package com.ruimei.mapper;

import com.ruimei.entitys.Evaluate;
import com.ruimei.entitys.ParentComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EvaluateMapper {
    //教师获取教师评语
    List<Evaluate> getEvaluate(@Param("classId") String classId,@Param("studentName") String studentName,
                               @Param("evaluateId") String evaluateId,@Param("teacherId") String teacherId);


    //家长获取教师评语
    List<Evaluate> getEvaluateP(@Param("studentId") String studentId);

    List<Evaluate> checkEvaluate(Evaluate evaluate);

    //教师添加教师评语
    Integer addEvaluate(Evaluate evaluate);
    Integer setEvaluateT(Evaluate evaluate);

    Integer addParentComment(ParentComment parentComment);
    Integer setParentComment(ParentComment parentComment);

    Integer deleteEvaluate(@Param("evaluateId") String evaluateId);

    List<ParentComment> getParentComment(@Param("title") String title,@Param("studentId") String studentId);


}
